home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / VBASIC / NW41BAS.ZIP / NW4XCOMM.BAS < prev    next >
Encoding:
BASIC Source File  |  1995-05-09  |  4.0 KB  |  126 lines

  1. 'NW4XCOMM.BAS
  2. '   Contains Common definations of data type needed across multiple
  3. '   BAS files for the Visual Basic Interface for Netware SDK 4.X
  4. 'April 4, 1995 - Version 0.1
  5. 'Created by Joseph A. DiVito - Seton Hall University
  6.  
  7. 'The DATA_AND_TIME defination is used in NW41CONN.BAS, NW41SERV.BAS
  8. Type DATE_AND_TIME
  9.     year As String * 1
  10.     month As String * 1
  11.     date As String * 1
  12.     hour As String * 1
  13.     minute As String * 1
  14.     second As String * 1
  15.     day As String * 1
  16. End Type
  17.  
  18. 'Used in NW4XVOL and NW4XDIR.BAS Files
  19. Type DIR_SPACE_INFO
  20.    totalBlocks As Long
  21.    availableBlocks As Long
  22.    purgeableBlocks As Long       'set to zero if a dirHandle is present
  23.    notYetPurgeableBlocks As Long '....when the NWGetDIrSpaceInfo() is called
  24.    totalDirEntries As Long
  25.    availableDirEntries As Long
  26.    reserved As Long
  27.    sectorsPerBlock As String * 1
  28.    volLen As String * 1
  29.    volName As String * 16
  30. End Type
  31.  
  32. Global Const SUCCESSFUL = 0
  33.  
  34. '*************************************************************************
  35. '    Begginning of NWCALDEF.H Code from the Netware SDK
  36. '    Converted to Visual Basic Code
  37. '*************************************************************************
  38.  
  39. Global Const FA_NORMAL = &H0
  40. Global Const FA_READ_ONLY = &H1
  41. Global Const FA_HIDDEN = &H2
  42. Global Const FA_SYSTEM = &H4
  43. Global Const FA_EXECUTE_ONLY = &H8
  44. Global Const FA_DIRECTORY = &H10
  45. Global Const FA_NEEDS_ARCHIVED = &H20
  46. Global Const FA_SHAREABLE = &H80
  47.  
  48. ' Extended file attributes
  49. Global Const FA_TRANSACTIONAL = &H10
  50. Global Const FA_INDEXED = &H20
  51. Global Const FA_READ_AUDIT = &H40
  52. Global Const FA_WRITE_AUDIT = &H80
  53.  
  54. ' the following is a the correct attribute mask list
  55. ' The difference between these and the FA_ constants above is that these
  56. '   are in the correct positions. The last four attributes above are 8 bits
  57. '   off. (They need to be shifted 8 bits to the left.)
  58. Global Const A_NORMAL = &H0
  59. Global Const A_READ_ONLY = &H1
  60. Global Const A_HIDDEN = &H2
  61. Global Const A_SYSTEM = &H4
  62. Global Const A_EXECUTE_ONLY = &H8
  63. Global Const A_DIRECTORY = &H10
  64. Global Const A_NEEDS_ARCHIVED = &H20
  65. Global Const A_SHAREABLE = &H80
  66. Global Const A_DONT_SUBALLOCATE = &H800
  67. Global Const A_TRANSACTIONAL = &H1000
  68. Global Const A_INDEXED = &H2000                ' not in the NCP book
  69. Global Const A_READ_AUDIT = &H4000
  70. Global Const A_WRITE_AUDIT = &H8000
  71. Global Const A_IMMEDIATE_PURGE = &H10000
  72. Global Const A_RENAME_INHIBIT = &H20000
  73. Global Const A_DELETE_INHIBIT = &H40000
  74. Global Const A_COPY_INHIBIT = &H80000
  75. Global Const A_FILE_MIGRATED = &H400000
  76. Global Const A_DONT_MIGRATE = &H800000
  77. Global Const A_IMMEDIATE_COMPRESS = &H2000000
  78. Global Const A_FILE_COMPRESSED = &H4000000
  79. Global Const A_DONT_COMPRESS = &H8000000
  80. Global Const A_CANT_COMPRESS = &H20000000
  81.  
  82. ' access rights attributes
  83. Global Const AR_READ = &H1
  84. Global Const AR_WRITE = &H2
  85. Global Const AR_READ_ONLY = &H1
  86. Global Const AR_WRITE_ONLY = &H2
  87. Global Const AR_DENY_READ = &H4
  88. Global Const AR_DENY_WRITE = &H8
  89. Global Const AR_COMPATIBILITY = &H10
  90. Global Const AR_WRITE_THROUGH = &H40
  91. Global Const AR_OPEN_COMPRESSED = &H100
  92.  
  93. ' search attributes
  94. Global Const SA_NORMAL = &H0
  95. Global Const SA_HIDDEN = &H2
  96. Global Const SA_SYSTEM = &H4
  97. Global Const SA_SUBDIR_ONLY = &H10
  98. Global Const SA_SUBDIR_FILES = &H8000
  99. Global Const SA_ALL = &H8006
  100.  
  101. Global Const MAX_VOL_LEN = 17        ' this includes a byte for null
  102.  
  103.  
  104. Global Const USE_NW_WILD_MATCH = 0
  105. Global Const USE_DOS_WILD_MATCH = 1
  106.  
  107. ' Scope specifiers
  108. Global Const GLOBAL_SCOPE = 0
  109. Global Const PRIVATE_SCOPE = 1
  110. Global Const MY_SESSION = 2
  111. Global Const ALL_SESSIONS = 3
  112.  
  113. ' Declarations for Trustee Rights to Directories
  114. Global Const TR_NONE = &H0
  115. Global Const TR_READ = &H1
  116. Global Const TR_WRITE = &H2
  117. Global Const TR_CREATE = &H8
  118. Global Const TR_ERASE = &H10
  119. Global Const TR_ACCESS = &H20
  120. Global Const TR_FILE = &H40
  121. Global Const TR_MODIFY = &H80
  122. Global Const TR_SUPERVISOR = &H100
  123. Global Const TR_NORMAL = &HFF
  124. Global Const TR_ALL = &H1FF
  125.  
  126.